<template>
    <view class="pub_page pub_contract_info">
        <pub-head headerName="contract" :headerConfig="headerConfig"></pub-head>
        <div class="page_box page_box_scroll" :style="{ 'height': `calc(100vh - ${otherHeight})` }">
            <contractPerson v-if="aType == 1"></contractPerson>
            <contractFirm v-if="aType == 2"></contractFirm>
        </div>
    </view>
</template>

<script>
import contractFirm from './contractComponents/firm.vue'
import contractPerson from './contractComponents/person.vue'
export default {
    components: { contractFirm, contractPerson },
    data() {
        return {
            headerConfig: {
                title: '自助签约',//标题栏内容
                header_color: '#fff'
            },
            otherHeight: getApp().globalData.otherHeight,
            aType: 0,//1个人认证  2企业认证
        };
    },
    onLoad(options) {
        console.log(options);
        this.aType = options.aType || 1;
        this.headerConfig.title = this.aType == 1 ? '个人认证' : '法人认证';
        // 支付宝小程序设置状态栏文字颜色
        this.$comFun.setZfbNavigationBar();
    },
    methods: {},
};
</script>

<style lang="scss" scoped>
@import "@/common/css/manage.scss";
</style>
